const reuiqreContext = require.context('./defines', true, /npc\.js$/);

const NpcModules = {};

reuiqreContext.keys().forEach((key, a, b) => {
  const mod = reuiqreContext(key);
  let name  = key.slice(2);
  name = name.slice(0, name.length - 7);
  NpcModules[name] = (mod.__esModule && mod.default ? mod.default : mod);
});

module.exports = NpcModules;